package com.jiazhong.cloud.governance.consumer.feign.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("cloud-service-governance-provider")
public interface ProviderFeign {

    @GetMapping("/provider")
    String hello();

    // 这里就需要调用服务的提供者
    @GetMapping("/provider/a/{name}")
    String a1(@PathVariable("name") String name);
}
